package com.immortal.core.module.file;


import com.immortal.core.service.StorageService;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * <p>TODO
 * @author         wind
 * @version        1.0
 */
public class StoreSource {
	static List<StorageService> listensers = new ArrayList<StorageService>();

	public static List<StorageService> getListensers() {
		return listensers;
	}

	public static void RegisterListensers(StorageService storageService){
		listensers.add(storageService);
	}
	public static StorageService sys(){
		return listensers.stream().filter(it-> FileStorageType.SYS.name().equals(it.storageName())).findFirst().get();
	}

}
